package com.jn.exam.paperConsumer.service;

import com.jn.exam.paperConsumer.entity.PaperQuestionAnswer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学生答题答案 服务类
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-02-21
 */
public interface PaperQuestionAnswerService extends IService<PaperQuestionAnswer> {

    boolean saveTotalScore(String examId, String studentId, Float totalScore);

    boolean saveOrUpdateAnswer(PaperQuestionAnswer paperQuestionAnswer);

    //查询一道题目的得分情况
    List<Map<String, Object>> getStatisticalOfOnePaperQuestion(String paperQuestionId);

    //查询一道题的最高最低平均分和答这道题的总人数
    List<Map<String, Object>> getMaxMinAvgOfOnePaperQuestion(String paperQuestionId);
}
